Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.assign

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.assign

The lodash method `_.assign` exported as a module.

  • 4.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2M
decreased by-13.24%
Maintainers
3
Weekly downloads
 
Created

What is lodash.assign?

The lodash.assign npm package is a method that assigns own enumerable string keyed properties of source objects to the destination object. It is part of the Lodash library, which is a popular utility library for JavaScript. lodash.assign is used primarily for object manipulation by copying properties from one or more source objects to a target object.

What are lodash.assign's main functionalities?

Object Property Assignment

This feature allows you to copy properties from one or more source objects to a target object. It modifies the target object and is useful for extending it with new properties.

{
  const object = { 'a': 1 };
  const source = { 'b': 2 };
  _.assign(object, source);
  console.log(object); // Output: { 'a': 1, 'b': 2 }
}

Other packages similar to lodash.assign

Keywords

FAQs

Package last updated on 13 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc